<include file="Public:header" />
<table id="TreeGrid" class="easyui-treegrid" style="width:600px;height:400px"
       data-options="url:'{:U('company/index')}?datagrid',idField:'com_id',treeField:'name'">
    <thead>
    <tr>
        <th data-options="field:'name',width:180">公司名称</th>
        <th data-options="field:'owner',width:60,align:'right'">管理者</th>
        <th data-options="field:'domain',width:80">绑定域名</th>
        <th data-options="field:'cat_name',width:80">行业分类</th>
        <th data-options="field:'locked', width:50, align:'center', formatter:function(value){return value == 1 ? '是' : '否';}">是否锁定</th>
        <th data-options="field:'create_time',width:80">创建时间</th>
    </tr>
    </thead>
</table>
<div id="Toolbar">
    <fieldset>
        <legend>搜索</legend>
        <div class="form-panel">
            姓名：<input name="RealName" size="15">
            <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search" onclick="newUser()"> 搜索 </a>
        </div>
    </fieldset>
    <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="addUser()">添加</a>
    <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="editUser()">编辑</a>
    <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="destroyUser()">删除</a>
    <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-print" plain="true" onclick="openLog()">查看操作日志</a>
</div>
<script type="text/javascript">

</script>
<include file="Public:footer" />